home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / CDragAcrossTable 1.0b1 / CDragAcrossTask.h < prev    next >
C/C++ Source or Header  |  1993-11-04  |  945b  |  42 lines

  1. #pragma once
  2.  
  3. #include "CGlobalMouseTask.h"
  4.  
  5. class CDragAcrossTable;
  6.  
  7. class CDragAcrossTask : public CGlobalMouseTask
  8. {
  9.     public:
  10.     
  11.         CDragAcrossTable* itsFromTable;
  12.  
  13.         CDragAcrossTable* itsToTable;
  14.         Point itsToBoundaries;
  15.  
  16.         RgnHandle itsSelectionRgn;
  17.         Boolean isSelectionRgnVisible;
  18.         
  19.     public:
  20.     
  21.         void IDragAcrossTask
  22.             ( CDragAcrossTable* aTable
  23.             , RgnHandle aSelectionRgn
  24.             , short aNameIndex );
  25.         virtual void Dispose( void );
  26.  
  27.         virtual void BeginTracking( Point startPt );
  28.         virtual void KeepTracking( Point currPt, Point prevPt, Point startPt );
  29.         virtual void EndTracking( Point currPt, Point prevPt, Point startPt );
  30.  
  31.         virtual CDragAcrossTable* FindHitTable( Point mousePt );
  32.         virtual void FindHitBoundaries
  33.             ( CDragAcrossTable* aTable
  34.             , Point hitPt
  35.             , Point* hitBoundaries );        
  36.  
  37.     protected:
  38.  
  39.         virtual void DrawSelectionRgn( Boolean showRgn );
  40.         virtual Boolean AutoScroll( CDragAcrossTable* aTable, Point hitPt );
  41. };
  42.